home *** CD-ROM | disk | FTP | other *** search
- Program EX_0206;
- {Listing 2P - see documentation in TUTOR.SSS}
-
- uses SSS;
- { For Pascal other than Turbo/Quick erase above line }
-
- { For MS Pascal $include:'SSSP1.H' }
-
- var
- pt : real;
-
- { For MS Pascal $include:'SSSP2.H' }
-
- function rnx(m, s: real): real;
- var x : real;
- begin
- repeat
- x := RN(m, s);
- until x > 0.0;
- rnx := x;
- end;
-
- begin
- pt := rnx(7, 4);
- repeat
- write('Start of call is at ',pt:5:2);
- if RA < 0.25 then pt := pt + ER(2,2) else
- pt := pt + TR(1,3,4);
- writeln(', ends at ',pt:5:2);
- pt := pt + rnx(7,4);
- until pt >= 120;
- end.
-